﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using Frame;

namespace ApplicationManagement
{
    
    public class Global
    {
        protected string m_filePath = System.Windows.Forms.Application.StartupPath + @"\App\AppFile.xml";
        //private ApplicationManager app;
        private FrameApplication m_app;
        public Global(FrameApplication app)
        {
            this.m_app = app;
            //app.LoadXml();
        }     

        public FrameApplication App { get { return m_app; } }
        //public ApplicationManager App { get { return app; } }

        public string get_full_address(string path)
        {
            return System.Windows.Forms.Application.StartupPath + @"\" + path;
        }

        public string get_file_name(string path)
        {
            return path.Substring((System.Windows.Forms.Application.StartupPath + @"\").Length);
        }
    }

}
